package com.ruoyi.project.his.system.service.impl;

import com.ruoyi.project.his.system.domain.ExamType;
import com.ruoyi.project.his.system.domain.HisDepartment;
import com.ruoyi.project.his.system.domain.HisExamCost;
import com.ruoyi.project.his.system.mapper.HisExamCostMapper;
import com.ruoyi.project.his.system.service.HisExamCostService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class HisExamCostServiceImpl implements HisExamCostService {
    //声明mapper层属性
    @Autowired
    private HisExamCostMapper hisExamCostMapper;

    //修改检查费
    @Override
    public int updateExamCost(HisExamCost hisExamCost) {
        return hisExamCostMapper.updateExamCost(hisExamCost);
    }
    //删除检查费
    @Override
    public int deleteExamCostByIds(Long[] examCostIds) {
        return hisExamCostMapper.deleteExamCostByIds(examCostIds);
    }
    //检查类型下拉框填充
    @Override
    public List<ExamType> selectExamCostByType() {
        return hisExamCostMapper.selectExamCostByType();
    }

    //根据ID查询科室信息
    @Override
    public HisExamCost selectExamCostById(Long examCostId) {
        return hisExamCostMapper.selectExamCostById(examCostId);
    }
    //新增检查费信息
    @Override
    public int insertExamCost(HisExamCost hisExamCost) {
        return hisExamCostMapper.insertExamCost(hisExamCost);
    }

    //动态查询检查费信息
    @Override
    public List<HisExamCost> selectHisExamCostList(HisExamCost hisExamCost) {
        return hisExamCostMapper.selectExamCostList(hisExamCost);
    }
}
